package com.dyh.dao;
/*引用user实体类*/
import com.dyh.po.policy;
//引用List数据结构
import java.util.List;


/**userDao接口*/
public interface policyDao {
    /**
     * 查找所有政策
     * @return List
     */
    List<policy> findAllPolicy();

    /**
     * 通过年份查找政策
     * @param year
     * @return policy
     */
    policy findPolicyByYear(String year);
    /**
     * 修改政策信息
     * @param year
     * @param topmoney
     * @param toppercent
     * @return int
     */
    int editPolicy(String year,String topmoney,String toppercent);

    /**
     * 添加政策
     * @param year
     * @param topmoney
     * @param toppercent
     * @return int
     */
    int addPolicy(String year,String topmoney,String toppercent);

    int deletePolicy(String year);
}
